//
//  FeedbackViewController.swift
//  FearfulNotification
//
//  Created by Jabin on 2019/6/19.
//  Copyright © 2019 筱鹏. All rights reserved.
//

import UIKit

class FeedbackViewController: BaseViewController {

    let infoButton = UIButton(type: .custom)
    let copyString = "bbbbbtttttt"
    
    override func viewDidLoad() {
        super.viewDidLoad()

        infoButton.frame = view.bounds
        infoButton.autoresizingMask = [.flexibleWidth, .flexibleHeight]
       
//        let infoTitle = """
//        暂未实现意见反馈\n
//        点击文本粘贴微信公众号账号\n
//        关注账号发送内容进行反馈\n
//        公众号: \(copyString)
//        """
        let infoTitle = """
        暂未实现意见反馈\n
        服务端程序还未实现\n
        """
        infoButton.setTitle(infoTitle, for: .normal)
        infoButton.setTitleColor(Theme.color.foreground, for: .normal)
        infoButton.titleLabel?.font = Theme.font.date
        infoButton.titleLabel?.numberOfLines = 0
        infoButton.titleLabel?.textAlignment = .center
//        infoButton.addTarget(self, action: #selector(infoAction(_:)), for: .touchUpInside)
        view.addSubview(infoButton)
        // Do any additional setup after loading the view.
    }
    
    @objc func infoAction(_ sender: UIButton) {
        UIPasteboard.general.string = copyString
        ProcessHUD.show(.hint, text: "粘贴成功")
    }
}
